#include "dlglogin.h"
#include "ui_dlglogin.h"

DlgLogin::DlgLogin(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DlgLogin)
{
    ui->setupUi(this);

    //去掉窗口右上角的问号
    Qt::WindowFlags flags=Qt::Dialog;
    flags |=Qt::WindowMinimizeButtonHint;
    this->setWindowFlags(flags);

    this->setModal(true);
}

DlgLogin::~DlgLogin()
{
    delete ui;
}

void DlgLogin::on_Btn_conn_clicked()
{
    QString m_ip = ui->lineEdit_ip->text();

    emit sig_conn(m_ip);

}

void DlgLogin::on_Btn_cancel_clicked()
{
    emit sig_cancel();
}
